//
//  ListWireframe.m
//  ViperDemo
//
//  Created by Leeesven on 17/5/17.
//  Copyright © 2017年 Leeesven. All rights reserved.
//

#import "ListWireframe.h"
#import "ListViewController.h"

#import "RootWireframe.h"
#import "ListPresenter.h"

@interface ListWireframe()

@property (nonatomic, strong) ListViewController *listViewController;

@end

@implementation ListWireframe

- (void) presentListInterfaceFromWindow:(UIWindow *)window{
    ListViewController *listViewController = [ListViewController new];
    listViewController.eventHandler = self.listPresenter;
    self.listPresenter.userInterface = listViewController;
    self.listViewController = listViewController;
    
    [self.rootWireframe showRootViewController:listViewController inWindow:window];
}

@end
